extern crate protoc_grpcio;

fn main() {
    let proto_root = "proto";
    let out_path = "src/commands";
    //let out_path = concat!(proto_root, "commands");

    println!("cargo:rerun-if-changed={}", proto_root);

    protoc_grpcio::compile_grpc_protos(&["redis.proto"], &[proto_root], &out_path, None)
        .expect("Failed to compile gRPC definitions!");
}
